/*
 * 老的打包方式，打包成整包umd文件，保留这个入口，仅仅为了有时候老环境线上调试用本地js替换用
 *
 */
import '@/plugins/v14s';
import '@/common/index_logic_design.js';
const { app } = window.xVueWeb;

// 组件注册列表
import BasicPie from './basic-pie/index';
import Select from './select/index';
import Characters from './characters/index.vue'
import FullyMechanizedNew from './FullyMechanizedNew/index.vue'
import Tunnelling from './Tunnelling/index.vue'
import FullyMechanizedMining from './FullyMechanizedMining/index.vue'
import progress from './progress/index.vue'
import videoList from './videoList/index.vue'
import videoPlayback from './videoPlayback/index.vue'

import StartStopCurve from './StartStopCurve/index.vue'
import OnDuty from './OnDuty/index.vue'
import AnnularChart from './AnnularChart/index.vue'
import PersonnelPositioning from './PersonnelPositioning/index.vue'
// import UniaxialBar from './uniaxial-bar/index';

// 组件配置页面
import ConfigBasicPie from './basic-pie/config/config-panel';
import ConfigSelect from './select/config/config-panel';
import ConfigCharacters from './characters/config/config-panel.vue'
import ConfigFullyMechanizedNew from'./FullyMechanizedNew/config/config-panel.vue'
import ConfigTunnelling from'./Tunnelling/config/config-panel.vue'
import ConfigFullyMechanizedMining from'./FullyMechanizedMining/config/config-panel.vue'
import Configprogress from'./progress/config/config-panel.vue'
import ConfigvideoList from'./videoList/config/config-panel.vue'
import ConfigvideoPlayback from'./videoPlayback/config/config-panel.vue'

import ConfigStartStopCurve from'./StartStopCurve/config/config-panel.vue'
import ConfigOnDuty from'./OnDuty/config/config-panel.vue'
import ConfigAnnularChart from'./AnnularChart/config/config-panel.vue'

import ConfigPersonnelPositioning from './PersonnelPositioning/config/config-panel.vue'
// import ConfigUniaxialBar from './uniaxial-bar/config/config-panel';

const visualComponents = {
  [`${process.env.xvueNameSpace_}basic_pie`]: BasicPie,
  [`${process.env.xvueNameSpace_}select`]: Select,
  [`${process.env.xvueNameSpace_}characters`]: Characters,
  [`${process.env.xvueNameSpace_}FullyMechanizedNew`]: FullyMechanizedNew,
  [`${process.env.xvueNameSpace_}Tunnelling`]: Tunnelling,
  [`${process.env.xvueNameSpace_}FullyMechanizedMining`]: FullyMechanizedMining,
  [`${process.env.xvueNameSpace_}progress`]: progress,
  [`${process.env.xvueNameSpace_}videoList`]: videoList,
  [`${process.env.xvueNameSpace_}videoPlayback`]: videoPlayback,
  
  [`${process.env.xvueNameSpace_}StartStopCurve`]: StartStopCurve,
  [`${process.env.xvueNameSpace_}OnDuty`]: OnDuty,
  [`${process.env.xvueNameSpace_}AnnularChart`]: AnnularChart,
  [`${process.env.xvueNameSpace_}PersonnelPositioning`]: PersonnelPositioning,
  // [`${process.env.xvueNameSpace_}uniaxial_bar`]: UniaxialBar,
};
const config = {
  [`config_${process.env.xvueNameSpace_}basic_pie`]: ConfigBasicPie,
  [`config_${process.env.xvueNameSpace_}select`]: ConfigSelect,
  [`config_${process.env.xvueNameSpace_}characters`]: ConfigCharacters,
  [`config_${process.env.xvueNameSpace_}FullyMechanizedNew`]: ConfigFullyMechanizedNew,
  [`config_${process.env.xvueNameSpace_}Tunnelling`]: ConfigTunnelling,
  [`config_${process.env.xvueNameSpace_}FullyMechanizedMining`]: ConfigFullyMechanizedMining,
  [`config_${process.env.xvueNameSpace_}progress`]: Configprogress,
  [`config_${process.env.xvueNameSpace_}videoList`]: ConfigvideoList,
  [`config_${process.env.xvueNameSpace_}videoPlayback`]: ConfigvideoPlayback,
  
  [`config_${process.env.xvueNameSpace_}StartStopCurve`]: ConfigStartStopCurve,
  [`config_${process.env.xvueNameSpace_}OnDuty`]: ConfigOnDuty,
  [`config_${process.env.xvueNameSpace_}AnnularChart`]: ConfigAnnularChart,
  [`config_${process.env.xvueNameSpace_}PersonnelPositioning`]: ConfigPersonnelPositioning,
  // [`config_${process.env.xvueNameSpace_}uniaxial_bar`]: ConfigUniaxialBar,
};

import stores from '@/store/index.js';

window[[`_${process.env.xvueNameSpace}`]] = {};
window[[`_${process.env.xvueNameSpace}`]].componets = visualComponents;
window[[`_${process.env.xvueNameSpace}`]].stores = { ...stores };
window[[`_${process.env.xvueNameSpace}`]].configs = config;

// 加载第三方js文件(aicc和海康)，如果环境上window._adoPremise.getCoalThirdJsKeyByAPIPromise不是undefined的话，就不需要放开这里，如果是undefined，则是需要伙伴的vapp在这里执行loadThirdJsFiles方法
// 如果不想通过这种调接口的方式，也可以自行导入，js文件附在了public文件夹中
// import { loadThirdJsFiles } from '../utils/script';
// loadThirdJsFiles();

export default visualComponents;
